Skip to content

test(cuelite): add dedicated unit tests for 7 engine.go unexported helpers (plan 2606260615) - #703

Merged
jeduden merged 5 commits into
mainfrom
claude/youthful-knuth-2sjr3f
Jun 26, 2026
Merged

test(cuelite): add dedicated unit tests for 7 engine.go unexported helpers (plan 2606260615)#703
jeduden merged 5 commits into
mainfrom
claude/youthful-knuth-2sjr3f

Conversation

@jeduden

@jeduden jeduden commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implements plan 2606260615 (filed by the 2026-06-26 architecture audit sweep)
  • Adds 7 dedicated TestFunctionName-style unit tests for unexported helpers in cue/cuelite/engine.go that lacked per-function coverage
  • No production code changed; tests only

Tests added

TestCombineMode, TestMkBottom, TestTopValue,
TestEngineValue_IsBottomV, TestEngineValue_DefaultValue,
TestEngineValue_DescribeBound, TestBound_Describe — all in a new
cue/cuelite/engine_helpers_test.go.

Test plan

  • go test ./cue/cuelite/... green
  • go vet ./... clean
  • go test ./... green (full suite)
  • Plan 2606260615 status → ✅

🤖 Generated with Claude Code

https://claude.ai/code/session_01YA8coRomPRZ9u51NjKeeMM


Generated by Claude Code

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.62%. Comparing base (a29c423) to head (7c6ee11).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
Components Coverage Δ
Go 98.61% <ø> (ø)
TypeScript 99.54% <ø> (ø)

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jeduden

jeduden commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

🔍 Merge Queue — bisecting

A larger batch failed CI. Bisection is isolating the culprit: this run tests up to 2 of 3 candidate PRs on merge-queue/batch-bisect-701-1782479238. View current bisect CI run.

Next: No action needed — you'll be notified when the culprit is isolated, this PR merges, or this PR returns to the queue for a later batch.

@jeduden jeduden added queue:attempt-1 queue Add to a PR to enqueue it labels Jun 26, 2026
@jeduden

jeduden commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

Merge Queue — requeued

The merge queue hit a transient error while processing this PR:

bisection continues on a smaller batch; this PR was not tested and returned to the queue

View merge queue run.

Next: No action needed — the queue will retry automatically on the next run.

@jeduden jeduden added queue:active Applied automatically when a PR is in an active batch and removed queue Add to a PR to enqueue it labels Jun 26, 2026
…lpers (plan 2606260615)

Adds TestCombineMode, TestMkBottom, TestTopValue,
TestEngineValue_IsBottomV, TestEngineValue_DefaultValue,
TestEngineValue_DescribeBound, and TestBound_Describe in a new
cue/cuelite/engine_helpers_test.go. Closes plan 2606260615 (filed
by the 2026-06-26 architecture audit sweep).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YA8coRomPRZ9u51NjKeeMM
jeduden pushed a commit that referenced this pull request Jun 26, 2026
@jeduden

jeduden commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

🔵 Merge Queue — CI running

Merged into batch branch merge-queue/batch-702-1782480687 alongside #702. View CI run.

Next: No action needed — you'll be notified when CI completes.

claude added 3 commits June 26, 2026 13:32
- Run mdsmith fix PLAN.md to add 2606260615 to the catalog
  (fixes mdsmith-fixed-version and mdsmith-check CI failures)
- Add missing opNe+numeric test case to TestBound_Describe
  (the isStr=false code path in bound.describe was untested)
- Use literal path in TestMkBottom to avoid aliasing false-positive

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YA8coRomPRZ9u51NjKeeMM
…ound 2

- Drop WHAT comments; keep two WHY comments (nil-safe contract, ambig semantics)
- Convert TestEngineValue_DescribeBound to table-driven form (matches sibling style)
- Add all six atomKind cases to DescribeBound table (akNumber/akBool/akBytes were untested)
- Add second-branch-is-default subtest to TestEngineValue_DefaultValue so a
  reversed-index bug in defaultValue would fail

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YA8coRomPRZ9u51NjKeeMM
Round-3 review finding: assert.True used as a precondition before
accessing v.reason/v.path/v.describe() and v2.path. Per CLAUDE.md
"use require for preconditions and assert for checks" — and the
same-package internal_test.go precedent — upgrade to require.True
so a failing isBottomV() stops the test cleanly rather than letting
secondary assertions run against an ill-formed value.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YA8coRomPRZ9u51NjKeeMM
@jeduden

jeduden commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

🔍 Merge Queue — bisecting

A larger batch failed CI. Bisection is isolating the culprit: this run tests up to 1 of 2 candidate PRs on merge-queue/batch-bisect-702-1782481064. View current bisect CI run.

Next: No action needed — you'll be notified when the culprit is isolated, this PR merges, or this PR returns to the queue for a later batch.

The mdsmith v0.41.0 YAML parser mis-parses a colon inside a >-
block folded scalar (e.g. "arch-fix: ..." on a continuation line)
as a mapping key, producing "could not find expected ':'". Rewrote
the title and summary to use only colon-free content in block
scalars, matching the pattern used by all other plan files that
pass the pinned-version CI check.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01YA8coRomPRZ9u51NjKeeMM
@jeduden
jeduden force-pushed the claude/youthful-knuth-2sjr3f branch from d617e4d to 7c6ee11 Compare June 26, 2026 13:41
@jeduden

jeduden commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

🔍 Merge Queue — bisecting

A larger batch failed CI. Bisection is isolating the culprit: this run tests up to 1 of 1 candidate PRs on merge-queue/batch-bisect-703-1782481401. View current bisect CI run.

Next: No action needed — you'll be notified when the culprit is isolated, this PR merges, or this PR returns to the queue for a later batch.

@jeduden jeduden removed the queue:active Applied automatically when a PR is in an active batch label Jun 26, 2026
@jeduden
jeduden merged commit 0ededb3 into main Jun 26, 2026
34 checks passed
@jeduden

jeduden commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

Merge Queue — merged

This PR landed on main via commit 0ededb3. CI run that validated the merge.

Next: Done — nothing more to do here.

jeduden pushed a commit that referenced this pull request Jun 27, 2026
The file was merged into main (PR #703) with unresolved conflict
markers, breaking mdsmith-fixed-version, mdsmith-check, and
bench-fragments CI jobs. Resolve by keeping the completed (✅) side:
checked tasks, checked acceptance criteria, and the final title/status
from the implementation run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012teDVC4T7vuxdaTBSBQ4nJ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants